# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=maitreya
pkgver=8.0.1
_majorver=${pkgver%%.*}
_pkgname="$pkgname$_majorver"
pkgrel=0
pkgdesc="Software for Vedic and western astrology"
url="https://www.saravali.de/maitreya.html"
arch="all"
# Saravali.ttf is licensed under OFL-1.1-RFN
# geonames1000.sql is licensed under CC-BY-4.0
license="GPL-2.0-or-later AND OFL-1.1-RFN AND CC-BY-4.0"
makedepends="wxgtk3-dev"
options="!check"
subpackages="$pkgname-lang"
source="https://github.com/martin-pe/maitreya8/releases/download/v$pkgver/$_pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	./configure \
		--prefix=/usr \
		--with-wx-config=wx-config-gtk3
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
53fe5c7c5d83bc39884e09717189ac9548e6817c489d3dfd26edadda04af059fd5628ec263e61fc3541cde93d9ee1816969adaa3815baa8289776b4d0ac4742a  maitreya8-8.0.1.tar.bz2
"
